package soundsystem;
import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created by jack on 18/5/28.
 */

/*
单元测试，配置了使用那个配置类，使用JUnit4ClassRunner
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = CDPlayerConfig.class)
public class CDPlayerTest {
//    @Autowired
//    private CompactDisc cd;

    @Test
    public void cdShouldNotBeNull(){
        System.out.println("start");
//        assertNotNull(cd);
//        cd.play();
        System.out.println("end");
    }

    @Test
    public void testcd(){

    }
}
